<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 为整个脚本开启严格模式 -->
    <script>
        'use strict'
    </script>
    <script>
        (function(){

        })();
    </script>
    <!-- 为某个函数开启严格函数 -->
    <script>
        function fn(){
            'use strict'
        }

        function fun(){
            
        }
    </script>
</body>
</html>